package com.crazymakercircle.mutithread.basic.create;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class StackAreaDemo {
    public static void main(String[] args) throws InterruptedException {
        log.info("当前线程名称：{}", Thread.currentThread().getName());
        log.info("当前线程ID：{}", Thread.currentThread().getId());
        log.info("当前线程状态：{}", Thread.currentThread().getState());
        log.info("当前线程优先级：{}", Thread.currentThread().getPriority());
        int a = 1, b = 1;
        int c = a / b;
        anotherFun();
        Thread.sleep(10000000);
    }

    private static void anotherFun() {
        int a = 1, b = 1;
        int c = a / b;
        anotherFun2();
    }

    private static void anotherFun2() {
        int a = 1, b = 1;
        int c = a / b;
    }
}